﻿{
	"WorkFlowIdentify": 1,
	"Name": "Vacation",
	"Description": "vacation workflow",

	"Process": {

		"start":
		{
			"type": "activity",
			"NodeName": "Start",
			"parameters": "",
			"handler": { "moduleName": "", "functionName": "" },
			"transition": "Manager"
		},

		"Manager":
		{
			"type": "activity",
			"NodeName": "Manager",
			"parameters": "CreatorID",
			"handler": {"moduleName": "/Vacation/VacationFlow", "functionName": "FindManager"},
			"transition":"ManagerOperate"
		},

		"ManagerOperate":
		{
			"type": "decision",
			"NodeName": "ManagerOperate",
			"parameters": "",
			"handler": {"moduleName": "/Vacation/VacationFlow", "functionName": "ManagerOperate"},
			"transition": null,
			"conditions": {
				"Approve": "DepartManager",
				"Reject": "End"
			}
		},

		"DepartManager":
		{
			"type": "activity",
			"NodeName": "DepartManager",
			"parameters": "CreatorID",
			"handler": {"moduleName": "/Vacation/VacationFlow", "functionName": "FindDepartManager"},
			"transition": "DepartManagerOperate"
		},

		"DepartManagerOperate":
		{
			"type": "decision",
			"NodeName": "DepartManagerOperate",
			"parameters": "",
			"handler": {"moduleName": "/Vacation/VacationFlow", "functionName": "DepartManagerOperate"},
			"transition": null,
			"conditions": {
				"Approve": "HRD",
				"Reject": "End"
			}
		},

		"HRD":
		{
			"type": "acticity",
			"NodeName": "HRD",
			"parameters": "CreatorID",
			"handler": {"moduleName": "/Vacation/VacationFlow", "functionName": "FindHRD"},
			"transition": "HRDOperate"
		},

		"HRDOperate":
		{
			"type": "decision",
			"NodeName": "HRDOperate",
			"parameters": "",
			"handler": {"moduleName": "/Vacation/VacationFlow", "functionName": "HRDOperate"},
			"transition": null,
			"conditions": {
				"Approve": "End",
				"Reject": "End"
			}
		},

		"End":
		{
			"type": "activity",
			"NodeName": "End",
			"parameters": "",
			"handler": {"moduleName": "", "functionName": ""},
			"transition": null
		}
	}

}